package com.example.exam.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.ByteArrayTypeHandler;

/**
 * @author
 * @date 2023/05/07
 *
 * 图片
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName
public class Picture {

    @TableId
    private String pictureName;

    @TableField(typeHandler = ByteArrayTypeHandler.class)
    private byte[] pictureData;
}
